import axios from 'axios'

let baseURL = 'https://d33a5037-6c63-4e92-8bb1-30018ab701ea.bspapp.com/http';


let default_axios = axios.create({
    baseURL
})

default_axios.interceptors.request.use(
    (config) => {

        return config
    },
    (err) => {

        return Promise.reject(err)
    });

default_axios.interceptors.response.use(
    (data) => {

        return data.data
    },
    (err) => {

        return Promise.reject(err)
    })

export default default_axios